package com.taomus.mytools.simplec.utils;

import java.util.Collection;
import java.util.Iterator;
import java.util.Queue;

public class Q<T> implements Queue<T> {
	
	private Queue<T> tkQ;
	
	public Q(final Queue<T> tkQ){
		this.tkQ = tkQ;
	}
	
	@Override
	public int size() {
		return this.tkQ.size();
	}

	@Override
	public boolean isEmpty() {
		return this.tkQ.isEmpty();
	}

	@Override
	public boolean contains(Object o) {
		return this.tkQ.contains(o);
	}

	@Override
	public Iterator<T> iterator() {
		return this.tkQ.iterator();
	}

	@Override
	public Object[] toArray() {
		return this.tkQ.toArray();
	}

	@Override
	public <T> T[] toArray(T[] a) {
		return this.tkQ.toArray(a);
	}

	@Override
	public boolean remove(Object o) {
		return this.tkQ.remove(o);
	}

	@Override
	public boolean containsAll(Collection<?> c) {
		return this.tkQ.containsAll(c);
	}

	@Override
	public boolean addAll(Collection<? extends T> c) {
		return this.tkQ.addAll(c);
	}

	@Override
	public boolean removeAll(Collection<?> c) {
		return this.tkQ.removeAll(c);
	}

	@Override
	public boolean retainAll(Collection<?> c) {
		return this.tkQ.retainAll(c);
	}

	@Override
	public void clear() {
		this.tkQ.clear();
	}

	@Override
	public boolean add(T e) {
		return this.tkQ.add(e);
	}

	@Override
	public boolean offer(T e) {
		return this.tkQ.offer(e);
	}

	@Override
	public T remove() {
		return this.tkQ.remove();
	}

	@Override
	public T poll() {
		T t = this.tkQ.poll();
	//	System.out.println("Q poll ===> "+t);
		return t;
	}

	@Override
	public T element() {
		return this.tkQ.element();
	}

	@Override
	public T peek() {
		T t = this.tkQ.peek();
//		System.out.println("Q peek  ===> "+t);
		return t;
	}
	
}
